package com.ruoyi.wlxz.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.time.LocalDateTime;
/**
 * 历史对话对象 historychat
 *
 * @author zhanghao
 * @date 2025-03-07
 */
public class Historychat extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * $column.columnComment
     */
    private Long id;
    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;
    /**
     * 对话id
     */
    @Excel(name = "对话id")
    private String chatId;
    /**
     * 用户提问
     */
    @Excel(name = "用户提问")
    private String ask;
    /**
     * ai回复
     */
    @Excel(name = "ai回复")
    private String request;
    /**
     * 对话时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd-hh-mm-ss")
    @Excel(name = "对话时间", width = 30, dateFormat = "yyyy-MM-dd-hh-mm-ss")
    private LocalDateTime time;
    private Integer isDelete;
    public Integer getIsDelete() {
        return isDelete;
    }
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getId() {
        return id;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getUserId() {
        return userId;
    }
    public void setChatId(String chatId) {
        this.chatId = chatId;
    }
    public String getChatId() {
        return chatId;
    }
    public void setAsk(String ask) {
        this.ask = ask;
    }
    public String getAsk() {
        return ask;
    }
    public void setRequest(String request) {
        this.request = request;
    }
    public String getRequest() {
        return request;
    }
    public void setTime(LocalDateTime time) {
        this.time = time;
    }
    public LocalDateTime getTime() {
        return time;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("chatId", getChatId())
                .append("ask", getAsk())
                .append("request", getRequest())
                .append("time", getTime())
                .append("isDelete", getIsDelete())
                .toString();
    }
}
